export interface Defaults{
    headers?: {
        common: Object,
        delete: Object,
        get: Object,
        patch: Object,
        post: Object,
        put: Object,
    },
    transformRequest: Function,
    transformResponse: Function,
    baseURL?: string
    timeout?: Number
    withCredentials?:boolean
}
export interface HttpFn{
    defaults: Defaults,//请求的默认为配置
    all: Function,//并发请求
    get: Function,//get请求
    post: Function, //post请求
    patch: Function, //patch请求
    put: Function,//put请求
    request:Function//自定义请求
}